# Generic flags
CFLAGS=-Wall
MODULES=CMain

# Mac OSX specific flags, requires the SDL Framework
LDFLAGS=-L/opt/local/lib -lSDL -lSDL_image

.PHONY: all $(MODULES)

all: mac.o

mac.o: $(MODULES)
	$(CC) $(CFLAGS) $(LDFLAGS) $</$<.o -o $@

$(MODULES):
	make -C $(MODULES)

.PHONY: clean

clean:
	rm -rf *.o 